using System;
using System.Collections.Generic;

namespace ERP.ERPSystem.WarehouseManagement.Dto
{
    /// <summary>
    /// 节假日设置分页结果类
    /// </summary>
    public class HolidaysSetPagedResult
    {
        /// <summary>
        /// 数据项
        /// </summary>
        public List<HolidaysSetDto> Items { get; set; } = new List<HolidaysSetDto>();
        
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
        
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageNumber { get; set; }
        
        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { get; set; }
        
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages => PageSize > 0 ? (int)Math.Ceiling((double)TotalCount / PageSize) : 0;
    }
} 